home *** CD-ROM | disk | FTP | other *** search
- .key file/a,cmd,desc
- .def desc="t:file_id.diz"
- .bra {
- .ket }
-
- if {cmd} eq "read"
- failat 21
-
- UnZIP -o "{file}" FILE_ID.DIZ -d t: >nil:
-
- if exists "{desc}"
- Protect >NIL: "{desc}" RWED
- skip end
- else
- set aminetfile "`list "{file}" LFORMAT %f%m`.readme"
- if not exists "$aminetfile"
- set aminetfile "`list "{file}" LFORMAT %m`.readme"
- UnZIP -o "{file}" "#?$aminetfile" -d t: >nil:
- set aminetfile "t:"$aminetfile
- endif
-
- if exists "$aminetfile"
- execute env:viewdiz/modules/readme "$aminetfile" CMD=read DESC="{desc}"
- unset aminetfile
- endif
- endif
- skip end
- endif
-
- if {cmd} eq "write"
- failat 21
- set note `list "{file}" lformat "%c"`
-
- ZIP -k -9 "{file}" "{desc}" >nil:
-
- get >nil: note
- if not warn
- filenote >nil: "{file}" "$note"
- unset note
- endif
-
- endif
-
- if {cmd} eq "delete"
- failat 21
- set note `list "{file}" lformat "%c"`
-
- ZIP d "{file}" FILE_ID.DIZ >nil:
-
- get >nil: note
- if not warn
- filenote >nil: "{file}" "$note"
- unset note
- endif
-
- endif
-
- if {cmd} eq "execute"
- execute env:viewdiz/modules/.getdrawer
- UnZIP -o "{file}" -d "$dest" >con:
- endif
-
- if {cmd} eq "info"
- setenv viewdiz/.minf "*"{file}*"" rwxd 6 _UnZip (#?.zip) Zip-packed
- endif
- lab end
- ;$VER: ViewDIZ-ZIP.module 1.3 (23.10.98) Mikael Lund & Stefano Pucino
-